<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

 <%@ page import="cn.edu.scau.cmi.carol.javabean.User" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录处理页面</title>
</head>
<body>

<jsp:useBean id="user" class="cn.edu.scau.cmi.carol.javabean.User">
<jsp:setProperty name="user" property="*"/>
</jsp:useBean>

用户名：<jsp:getProperty property="name" name="user"/>
密码：<jsp:getProperty property="password" name="user"/>

 
 <%
 
 String name=user.getName();
 String password=user.getPassword();
 if(!name.equals("")&&!password.equals("")){
	 response.sendRedirect("login_ok.jsp");
	 System.out.print(request.getRequestURI());
 }
 else{
	 response.sendError(500,"请输入登录验证消息");
 }
 %>
 
</body>
</html>